<div class="well sidebar-nav">
    <ul class="nav nav-list">
        <li class="nav-header">Category</li>
        <li <?php echo empty($this->active) ? 'class="active"' : '' ?>>
            <a href="/">All</a>
        </li>
        <?php foreach($this->categories as $category): ?>
            <?php $href = strtolower($category) ?>
            <li <?php echo $this->active == $href ? 'class="active"' : '' ?>>
                <a href="/disputeo/<?php echo $href ?>">
                    <?php echo $category ?>
                </a>
            </li>
        <?php endforeach ?>
    </ul>
</div>